#include <iostream>


using namespace std;

int n,m;
int num[1001];
int main() {
    cin>>n>>m;
    for (int i = n; i <=m ; ++i) {
        int j=i;
        while(j>0){
            num[j%10]++;
            j=j/10;
        }
    }
    for (int i = 0; i <10 ; ++i) {
        cout<<num[i]<<" ";
    }
    return 0;
}
